#include"process.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#define NUM 101
#define STYLE '#'
void Process()
{
  const char *lable = "|/-\\";
  int len = strlen(lable);
  char bar[NUM];
  memset(bar,'\0',sizeof(bar));
  int cnt = 0;
  while(cnt <= 100)
  {
    printf("[%-100s][%d%][%c]\r",bar,cnt,lable[cnt%len]);
    bar[cnt] = STYLE;
    ++cnt;

    usleep(50000);
    fflush(stdout);
  }
  printf("\r\n");
}
